home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Tools & Apps / Networking & Communications / AFP C++ / AFPCall.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-05-01  |  1.6 KB  |  60 lines  |  [TEXT/MPS ]

  1. /************************************************************
  2.  
  3. Created: Tuesday, November 6, 1991
  4.     AFPCall.h
  5.     C++ Interface to the AppleTalk Filing Protocol
  6.     M.Vierling
  7.  
  8.  
  9.         Copyright Apple Computer, Inc. 1985-1991
  10.         All rights reserved
  11.  
  12. ************************************************************/
  13. #ifndef        AFPCall_H
  14. #define        AFPCall_H
  15.  
  16. #include <Types.h>
  17. #include <AppleTalk.h>
  18.  
  19. class TAFPCall
  20. {
  21. public:
  22.     short GetSession() const{ return fSessRefnum; }
  23.     void SetTimeout( char Timeout ) { fAspTimeout = Timeout; }
  24.     char GetTimeout() const{ return fAspTimeout; }
  25.     void SetRetry( char Retry ) { fAspRetry = Retry; }
  26.     char GetRetry() const{ return fAspRetry; }
  27. protected:
  28.     OSErr fErrResult;
  29.     
  30.     TAFPCall();
  31.     ~TAFPCall();
  32.     OSErr IAFPCall();
  33.     OSErr DoCommand( Ptr cbPtr, unsigned short cbSize,
  34.                      Ptr rbPtr, unsigned short rbSize );
  35.     virtual OSErr DoAFPCommand( XPPParmBlkPtr theParamPtr );
  36.     OSErr DoGetStatus( Ptr rbPtr, unsigned short rbSize, AddrBlock addrBlock );
  37.     OSErr DoLogin( Ptr cbPtr, unsigned short cbSize,
  38.                    Ptr rbPtr, unsigned short rbSize, AddrBlock addrBlock );
  39.     OSErr DoWrite( Ptr cbPtr, unsigned short cbSize,
  40.                    Ptr rbPtr, unsigned short rbSize,
  41.                    Ptr wdPtr, unsigned short wdSize );
  42.     OSErr DoLogout();
  43.     OSErr SetError();
  44.     virtual void Debug( OSErr theErr, const char * message );
  45. private:
  46.     char             fAspTimeout;
  47.     char            fAspRetry;
  48.     short            fXPPRefNum;
  49.     short            fSessRefnum;
  50.     short            fMaxCommandSize;
  51.     short            fMaxQuantumSize;
  52.     Ptr                fafpAttnRoutine;
  53.     Ptr                fafpSCBPtr;
  54.     ProcPtr            fioCompletion;
  55.     XPPParmBlkPtr    fParamPtr;
  56.     void             IParamBlock();
  57. };
  58.  
  59. #endif
  60.